//登录，后端给前端返回的数据
import { Record } from './systemUser';
export interface IDictRequest {
    code: string
    message: string
    data?: string | null,
    timestamp: number
}

//列表
export interface IDictList {
    code: string
    message: string
    data: {
        records: IListInfo[],
    }
    total: number
    timestamp: number
}

// 列表信息

export interface IListInfo {
    id?: number;
    createUser?: string;
    createTime?: Date;
    typeId: string;
    k: string;
    v: string;
    sort?: number;
}


//搜索栏
export interface IDictForm {
    name: string | undefined;
    current: number,
    size: number,
}



//新增表单信息
export interface IDictFormAdd {
    typeId?: string;
    k: string;
    v: string;
    sort?: number;
    remark?: string;
}

//修改以及详情表单信息
export interface IDictFormInfo {
    name: string,
    type: string,
    remarks: string
}

//字典类型返回值
export interface IDictAllRequest {
    code: string
    message: string
    data: IDictTypeAll[]
    timestamp: number
}

export interface IDictTypeAll {

    id?: number;
    createUser?: string;
    createTime?: string; // 前端通常用字符串表示日期时间
    name: string;
    type: string;
    remarks?: string;
}
